package com.yixing.tech.common.tcp.pc;

import java.io.Serializable;

public class TcpMessage implements Serializable {
    private String message;
    private String ip;
    private Integer port;

    public TcpMessage() {
    }

    public TcpMessage(String message, String ip, Integer port) {
        this.message = message;
        this.ip = ip;
        this.port = port;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "TcpMessage{" +
                "message='" + message + '\'' +
                ", ip='" + ip + '\'' +
                ", port=" + port +
                '}';
    }
}
